package com.rui.shangXueTang.binarySort;

/**
 * @author : [锐神NO.3]
 * @version : [v1.0]
 * @className : Test
 * @createTime : [2022/2/18 22:12]
 * @description : [描述该类的功能]
 */

public class Test {
    public static void main(String[] args) {
        int[] arr = {7,3,10,12,5,1,9,2};

        BinarySoryTree binarySoryTree = new BinarySoryTree();

        for(int i = 0 ; i < arr.length ; i++){
            binarySoryTree.add(new Node(arr[i]));
        }

        binarySoryTree.infixSelect();
        System.out.println("-----------------");

        binarySoryTree.delNode(3);
        binarySoryTree.infixSelect();
    }
}
